package stravel

class HotelComment {
	
	static belongsTo = [hotel:Hotel, user:User]
	String commentVal
	Date createDate

    static constraints = {
		hotel(nullable:false, blank:false)
		commentVal(nullable:false, blank:false)
		user(nullable:false, blank:false)
		createDate(nullable:false, blank:false)
    }
	
	static mapping = {
		sort "createDate"
	}
}
